package com.dduggs.controller;

/**
 * @author Created by CJS on 2018/4/24
 * @ClassName:
 * @Description:
 */
public class Hello {
    public static void main(String[] args) {

        A a = new B();
        a = new B();

    }
}

class A {
    static {
        System.out.print("1");
    }

    A() {
        System.out.print("a");
    }
}

class B extends A {
    static {
        System.out.print("2");
    }

    B() {
        System.out.print("b");
    }
}
